<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<style>
			.box {
				background-color: #f00;
				height: 300px;
				/* 定义行内内容(例如文本)如何相对他的块父元素对齐 */
				text-align: center;
			}

			.box1 {
				background-color: #ff0;
				height: 300px;
				text-align: center;
			}
			.content {
				background-color: #0f0;
				height: 200px;
				width: 200px;
				/* display: inline-block; */
				margin: 0 auto;
			}

			.box2 {
				width: 200px;
				background-color: #f00;
				color: #fff;
				text-align: justify;
				text-align-last: justify;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<img
				src="https://tse3-mm.cn.bing.net/th/id/OIP-C.owpbNjuu23xkyc4yrX9BDQHaEo?pid=ImgDet&rs=1"
				alt=""
			/>
			<input type="text" />
		</div>

		<div class="box1">
			<div class="content"></div>
		</div>

		<div class="box2">
			Lorem ipsum dolor sit, amet consectetur adipisicing elit. Distinctio
			sint numquam libero expedita quo sunt tempore labore, architecto
			optio laboriosam ea dolores aperiam qui nesciunt suscipit sed
			nostrum reiciendis quidem?
		</div>
	</body>
</html>
